#ifndef CONSUMABLE_H
#define CONSUMABLE_H

#include "item.h"

class Monster;

class Consumable : public Item
{
public:
	Consumable( int x, int y, std::string name = "sweet bread",
		char symbol = '*' );
	Consumable( const consumable_t, int x, int y );
	DECLARE_INSTANCE;
	int effect( Monster * );
	int getStrength();
	int ( *getEffect() )( Monster *, int );
	void setEffect( int ( * )( Monster *, int ) );
protected:
	int ( *effectType )( Monster *, int strength );
	int effectStrength;
};

int effectHeal( Monster *, int strength );
int effectHarm( Monster *, int );

#endif